Package com.cisco.pt.mu
Class MUConInMessage
java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.mu.MultiUserMessage
com.cisco.pt.mu.MUConInMessage
- All Implemented Interfaces:
LTV
This is a name update message from PT.
-
Field Summary
FieldsFields inherited from class com.cisco.pt.mu.MultiUserMessage
ePtmpMUMsg, PTMP_TYPE_MUCONIN, PTMP_TYPE_MUCONOUT, PTMP_TYPE_MULINKUPDATE, PTMP_TYPE_MULINKUPDATESTATUS, PTMP_TYPE_MUNAMEUPDATE, PTMP_TYPE_MUNEGOREQ, PTMP_TYPE_MUNEGORESP, PTMP_TYPE_MUPDU, PTMP_TYPE_MUPORTADV, PTMP_TYPE_MUSAVENETREQ, PTMP_TYPE_MUSAVENETRESPFields inherited from interface com.cisco.pt.LTV
AUTH_CHALLENGE_TYPE, AUTH_REQUEST_TYPE, AUTH_RESPONSE_TYPE, AUTH_STATUS_TYPE, DISCONNECT_MESSAGE_TYPE, IPC_ERROR_TYPE, IPC_EVENT_SUBSCRIPTION_TYPE, IPC_EVENT_TYPE, IPC_MESSAGE_TYPE, IPC_RESPONSE_TYPE, KEEP_ALIVE_MESSAGE_TYPE, MULTI_USER_MESSAGE_TYPE, NEGOTIATION_MESSAGE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMUConInMessage(int linkId, int ascii, int special) This function creates a new console input message for the MU protocol. -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) Serializes the message into a PTBuffer.intgetAscii()Gets the ascii character from the messageintGets the linkId from the messagestatic MUConInMessagegetMessage(EncodedBuffer buffer) A deserialization function that creates a new message from a PTBuffer object.intGets the special attributesvoidsetAscii(int ascii) Sets the ascii character for this inputvoidsetLinkId(int linkId) Sets the linkIdvoidsetSpecial(int special) Sets the special attributestoString()Converts this message into a string for debugging purposesMethods inherited from class com.cisco.pt.mu.MultiUserMessage
isConInput, isConOutput, isLinkUpdate, isLinkUpdateStatus, isMuMessage, isPDU, isPortAdv, isSaveRequest, isSaveResponseMethods inherited from class com.cisco.pt.impl.LTVImpl
getLength, getMessageId, getNextMessageId, getType, getValue, hasResponse, isEvent, isResponse, setLength, setType, setValue
-
Field Details
-
linkId
public int linkId -
ascii
public int ascii -
special
public int special
-
-
Constructor Details
-
MUConInMessage
public MUConInMessage(int linkId, int ascii, int special) This function creates a new console input message for the MU protocol.- Parameters:
linkId- The ID of the input linkascii- The ascii value of the input characterspecial- The special value code for the character
-
MUConInMessage
public MUConInMessage()
-
-
Method Details
-
setLinkId
public void setLinkId(int linkId) Sets the linkId- Parameters:
linkId- The linkId associated with the input
-
getLinkId
public int getLinkId()Gets the linkId from the message- Returns:
- The linkId contained in the message
-
setAscii
public void setAscii(int ascii) Sets the ascii character for this input- Parameters:
ascii- The ascii character for the input
-
getAscii
public int getAscii()Gets the ascii character from the message- Returns:
- The ascii character for the input
-
setSpecial
public void setSpecial(int special) Sets the special attributes- Parameters:
special- The special attributes for this character
-
getSpecial
public int getSpecial()Gets the special attributes- Returns:
- The special attributes for this character
-
getMessage
A deserialization function that creates a new message from a PTBuffer object.- Parameters:
buffer- The PTBuffer to read from- Returns:
- A new instance of a MUConInMessage class read from the buffer
-
encodeTypeAndPayload
Serializes the message into a PTBuffer.- Specified by:
encodeTypeAndPayloadin interfaceLTV- Overrides:
encodeTypeAndPayloadin classLTVImpl- Parameters:
buffer- The PTBuffer to write the message into
-
toString
Converts this message into a string for debugging purposes- Overrides:
toStringin classMultiUserMessage- Returns:
- A string representation of this message
-